Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance(oidc): add more claims #1172

Merged
merged 12 commits into from
Sep 5, 2024
Merged

enhance(oidc): add more claims #1172

merged 12 commits into from
Sep 5, 2024

Conversation

JordanSussman
Copy link
Collaborator

@JordanSussman JordanSussman commented Aug 26, 2024

closes go-vela/community#996

Note: I intended to include whether the build was triggered from a fork, but it seems we don’t currently store that information in the database. Therefore, I decided to omit that detail for now. If someone wants to add this feature in the future, they will also need to update the database to capture this data.

@JordanSussman JordanSussman requested a review from a team as a code owner August 26, 2024 16:35
Copy link

codecov bot commented Aug 26, 2024

Codecov Report

Attention: Patch coverage is 38.88889% with 11 lines in your changes missing coverage. Please review.

Project coverage is 52.84%. Comparing base (d0fa4f7) to head (f4fb29e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/token/mint.go 46.66% 8 Missing ⚠️
api/oi_config.go 0.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1172      +/-   ##
==========================================
- Coverage   52.85%   52.84%   -0.02%     
==========================================
  Files         551      551              
  Lines       19182    19199      +17     
==========================================
+ Hits        10139    10146       +7     
- Misses       8479     8489      +10     
  Partials      564      564              
Files with missing lines Coverage Δ
mock/server/authentication.go 0.00% <ø> (ø)
api/oi_config.go 0.00% <0.00%> (ø)
internal/token/mint.go 23.30% <46.66%> (+4.19%) ⬆️

Copy link
Collaborator

@wass3r wass3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one minor thing, otherwise lgtm

mock/server/authentication.go Outdated Show resolved Hide resolved
@ecrupper
Copy link
Contributor

Is there an intention to follow up this PR with the API implementation here?

@JordanSussman
Copy link
Collaborator Author

Is there an intention to follow up this PR with the API implementation here?

Can you expand on this a bit more? The code I added should be returned in the API payload due to

idt, err := tm.MintIDToken(ctx, idmto, database.FromContext(c))
.

@ecrupper
Copy link
Contributor

Is there an intention to follow up this PR with the API implementation here?

Can you expand on this a bit more? The code I added should be returned in the API payload due to

idt, err := tm.MintIDToken(ctx, idmto, database.FromContext(c))

.

Whoops, got confused and thought image was net new. Yep lgtm

@wass3rw3rk wass3rw3rk merged commit b998ec1 into main Sep 5, 2024
11 of 13 checks passed
@wass3rw3rk wass3rw3rk deleted the oidc-claim-updates branch September 5, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional OIDC claims
6 participants